<form method="post" id="$metadata.id">
  #for $section in $sections
  <div id=$section.id>
    #for $question in $section.questions
    <tr>
      <th>$question.prompt:</th>
      <td>
      #if $question.type == "short-answer"
        <input name="$question.id" size="" maxlength="" value="$question.answer"/>
      #else if $question.type == "long-answer"
        <textarea name=$question.id rows="" cols="">$question.answer</textarea>
      #else if $question.type == "choices-multiple-answer"
        <input type="checkbox" name="$question.id"/>$question.answer
      #else if $question.type == "choices-single-answer"
        <select name="$question.id">
          <option>$question.answer</option>
        </select>  
      #else if $question.type == "scale"
        <input type="radio" name="$question.id"/>$question.answer
      #else
        <input name="$question.id" size="" maxlength="" value="$question.answer"/>
      #end if
      </td>
    </tr>
    #end for
  </div>
  #end for
</form>  
